#SRCS := main.c smartconnect.c crc8.c osdep.c linux.c radiotap/radiotap-parser.c common.c
SRCS := main.c airkiss.c crc8.c osdep.c linux.c radiotap/radiotap-parser.c common.c
DEPS = $(patsubst %.c,%.d,$(SRCS))
OBJS = $(patsubst %.c,%.o,$(SRCS))

all: airkiss

CFLAGS = -Wall -O2 

-include $(DEPS)

airkiss: $(OBJS)
	$(CC) -o $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -MP -MMD -MF $(patsubst %.o,%.d,$@) -MT $(patsubst %.o,%.d,$@) -o $@ -c $<

clean: 
	-rm -f airsend $(OBJS) $(DEPS)
